package com.tentcoo.web.controller;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
@Controller
public class LoginController {
	
	@RequestMapping(produces = "text/plain;charset=UTF-8",value="getCheckCode")
	@ResponseBody
	public String getCheckCode(HttpServletRequest request,String phone){
		System.out.println(phone);
		Map<String,String> map = new HashMap<String,String>();
		map.put("info", "进入成功1111");
		return JSON.toJSONString(map);
	}
}
